-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Deprecated" annotation to Pending #5224
Conversation
@@ -23,7 +23,7 @@ import ( | |||
type TraceflowPhase string | |||
|
|||
const ( | |||
// Pending is not used anymore | |||
// Deprecated: Pending is not used anymore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's reasonable to refine comment for IDE behavior since different IDEs may have different requirements. @antoninbas @tnqn any comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's necessary to show deprecated
info, I may include the change in PR #5108.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a very common convention. Please see https://zchee.github.io/golang-wiki/Deprecated.
"Some tools will warn on use of deprecated identifiers and their docs are hidden on pkg.go.dev."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me.
@luolanzone we can merge this PR as is, and you can remove Pending
altogether for v1beta1/types.go
in your PR
/skip-all |
I can't actually merge this because the linters are now complaining:
IMO, it is ok to remove
|
Of course, we could also skip this PR altogether (or "merge" it with @luolanzone's PR) or add a temporary ignore directive for SA1019 |
I've added a ignore directive for SA1019. |
/skip-all |
//lint:ignore SA1019 Allow existing use. | ||
case "", crdv1alpha1.Pending: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@luolanzone you can remove the lint directive and the Pending
reference in your Traceflow graduation PR
Still cannot merge as CI is failing |
Add a "Deprecated" annotation to Pending, so that the IDE will show hints that this phase is deprecated. Signed-off-by: shi0rik0 <[email protected]>
I've fixed it. This is because |
sorry for the delay. With the Traceflow promotion PR merged, the change in |
Add a "Deprecated" annotation to Pending, so that the IDE will show hints that this phase is deprecated.